package com.zisuyi.uilibrary.view

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import com.weilele.mvvm.widget.BaseImageView

class ClickScaleImageView : BaseImageView, IClickScale {
    constructor(context: Context) : super(context)
    constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
    constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
        context,
        attrs,
        defStyleAttr
    )

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        onTouchEventHelper(this, event)
        return super.onTouchEvent(event)
    }
    override fun setOnClickListener(l: OnClickListener?) {
        super.setOnClickListener {
//            SoundUtils.play(SoundUtils.GameMusic.Button.bean)
            l?.onClick(it)
        }
    }
}